package v1

import (
	"github.com/gogf/gf/v2/frame/g"
)

type SignInReq struct {
	g.Meta   `path:"/signin" tags:"SignIn" method:"post" `
	UserName string `json:"userName" v:"required#用户名不能为空"`
	Password string `json:"password" v:"required#密码不能为空"`
}

type SignInRes struct {
}

type SignUpReq struct {
	g.Meta    `path:"/signup" tags:"SignUp" method:"post"`
	UserName  string `json:"userName" v:"required#用户名不能为空"`
	Password  string `json:"password" v:"required|length:6,20#密码不能为空|密码长度在6到20位之间"`
	Password2 string `json:"password2" v:"required|same:Password#密码不能为空|两次输入的密码不一致"`
	NickName  string `json:"nickName" d:"default name"`
}

type SignUpRes struct {
}

type SignOutReq struct {
	g.Meta `path:"/signout" tags:"SignOut" method:"post" `
}

type SignOutRes struct {
}
